package com.jichangxiu.generator.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import com.jichangxiu.common.entity.po.BaseEntity;
import com.jichangxiu.generator.entity.bo.GenRowBo;
import com.jichangxiu.generator.entity.vo.GenRowVo;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * GenRow: gen_row 生成行表
 *
 * @author JiChangXiu
 * @create 2024-06-30 13:31:04
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("gen_row")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AutoMappers({
        @AutoMapper(target = GenRowBo.class, reverseConvertGenerate = false),
        @AutoMapper(target = GenRowVo.class, reverseConvertGenerate = false)
})
public class GenRow extends BaseEntity {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 编码
     */
    @TableField(value = "no")
    private String no;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 表描述
     */
    @TableField(value = "comment")
    private String comment;

    /**
     * 分类ID
     */
    @TableField(value = "category_id")
    private String categoryId;

    /**
     * 关联的子表
     */
    @TableField(value = "child_row_id")
    private String childRowId;

    /**
     * 关联的子表字段
     */
    @TableField(value = "child_column_id")
    private String childColumnId;

    /**
     * 包路径
     */
    @TableField(value = "pack")
    private String pack;

    /**
     * 类名称
     */
    @TableField(value = "clazz")
    private String clazz;

    /**
     * 大写类名称
     */
    @TableField(value = "big_clazz")
    private String bigClazz;

    /**
     * 模块名
     */
    @TableField(value = "module")
    private String module;

    /**
     * 业务名
     */
    @TableField(value = "business")
    private String business;

    /**
     * 大写业务名
     */
    @TableField(value = "big_business")
    private String bigBusiness;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 功能名
     */
    @TableField(value = "ability")
    private String ability;

    /**
     * 生成代码方式
     */
    @TableField(value = "type")
    private String type;

    /**
     * 生成路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * 上级菜单
     */
    @TableField(value = "menu_id")
    private String menuId;

    /**
     * 是否生成过
     */
    @TableField(value = "generated")
    private Boolean generated;

    /**
     * 其它生成选项
     */
    @TableField(value = "options")
    private String options;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 顺序
     */
    @TableField(value = "sort")
    private BigDecimal sort;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "deleted")
    private Long deleted;

}